
import 'package:p_location/home/obj/employee_info_obj.dart';

class EmployeeDetailRes {
    EmployeeInfoObj data;
    int code;
    String detailMessage;
    String errMsg;
    String extra;
    int length;
    String msg;

    EmployeeDetailRes({this.data, this.code, this.detailMessage, this.errMsg, this.extra, this.length, this.msg});

    factory EmployeeDetailRes.fromJson(Map<String, dynamic> json) {
        return EmployeeDetailRes(
            data: json['data'] != null ? EmployeeInfoObj.fromJson(json['data']) : null,
            code: json['code'], 
            detailMessage: json['detailMessage'], 
            errMsg: json['errMsg'], 
            extra: json['extra'], 
            length: json['length'], 
            msg: json['msg'], 
        );
    }
}